import 'package:flutter/material.dart';

class OrderDetail extends StatefulWidget {
  const OrderDetail({super.key});

  @override
  State<OrderDetail> createState() => _OrderDetailState();
}

class _OrderDetailState extends State<OrderDetail> {
  @override
  Widget build(BuildContext context) {
    ModalRoute modalRoute = ModalRoute.of(context)!;
    print(modalRoute.settings.arguments);

    return Scaffold(
      // 背景颜色
      // backgroundColor: Colors.blueGrey,
      // 导航栏
      appBar: AppBar(
        // 导航栏标题
        title: Text('返回上一页'),
        // 导航栏背景颜色
        backgroundColor: const Color.fromARGB(255, 232, 221, 10),
      ),
      // 显示图片  组件 居中
      body: ElevatedButton(
        onPressed: () {
          Navigator.pop(context);
        },
        child: Text('返回上一页'),
      ),
    );
  }
}
